package com.ruoyi.sys.vehile.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 停车记录
 对象 tb_parking
 *
 * @author ruoyi
 * @date 2022-05-24
 */
public class TbParking extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long pId;

    /** 车辆号码 */
    @Excel(name = "车辆号码")
    private String pNumper;

    /**  车辆类型0-外部车辆1-自有 */
    @Excel(name = " 车辆类型0-外部车辆1-自有")
    private Long pVehicleType;

    /** 进入时间(自动生成） */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进入时间(自动生成）", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pStartDate;

    /** 进场照片 */
    @Excel(name = "进场照片")
    private String pStartPhotograph;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Date pEndDate;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String pEndPhotograph;

    /** 停车类型表0-临时 1-永久 */
    @Excel(name = "停车类型表0-临时 1-永久")
    private Long pParkingType;

    /** 停车时长 */
    @Excel(name = "停车时长")
    private String pTime;

    /** 停车费 */
    @Excel(name = "停车费")
    private Long pMoney;

    /** 0离场1未离场  通过判断来进行自动修改 */
    @Excel(name = "0离场1未离场  通过判断来进行自动修改")
    private Long pState;

    public void setpId(Long pId)
    {
        this.pId = pId;
    }

    public Long getpId()
    {
        return pId;
    }
    public void setpNumper(String pNumper)
    {
        this.pNumper = pNumper;
    }

    public String getpNumper()
    {
        return pNumper;
    }
    public void setpVehicleType(Long pVehicleType)
    {
        this.pVehicleType = pVehicleType;
    }

    public Long getpVehicleType()
    {
        return pVehicleType;
    }
    public void setpStartDate(Date pStartDate)
    {
        this.pStartDate = pStartDate;
    }

    public Date getpStartDate()
    {
        return pStartDate;
    }
    public void setpStartPhotograph(String pStartPhotograph)
    {
        this.pStartPhotograph = pStartPhotograph;
    }

    public String getpStartPhotograph()
    {
        return pStartPhotograph;
    }
    public void setpEndDate(Date pEndDate)
    {
        this.pEndDate = pEndDate;
    }

    public Date getpEndDate()
    {
        return pEndDate;
    }
    public void setpEndPhotograph(String pEndPhotograph)
    {
        this.pEndPhotograph = pEndPhotograph;
    }

    public String getpEndPhotograph()
    {
        return pEndPhotograph;
    }
    public void setpParkingType(Long pParkingType)
    {
        this.pParkingType = pParkingType;
    }

    public Long getpParkingType()
    {
        return pParkingType;
    }
    public void setpTime(String pTime)
    {
        this.pTime = pTime;
    }

    public String getpTime()
    {
        return pTime;
    }
    public void setpMoney(Long pMoney)
    {
        this.pMoney = pMoney;
    }

    public Long getpMoney()
    {
        return pMoney;
    }
    public void setpState(Long pState)
    {
        this.pState = pState;
    }

    public Long getpState()
    {
        return pState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("pId", getpId())
                .append("pNumper", getpNumper())
                .append("pVehicleType", getpVehicleType())
                .append("pStartDate", getpStartDate())
                .append("pStartPhotograph", getpStartPhotograph())
                .append("pEndDate", getpEndDate())
                .append("pEndPhotograph", getpEndPhotograph())
                .append("pParkingType", getpParkingType())
                .append("pTime", getpTime())
                .append("pMoney", getpMoney())
                .append("pState", getpState())
                .toString();
    }
}
